import request from '@/utils/request';
import { getRequest, postRequest, deleteRequest, putRequest } from '@/utils/request';
// 工艺能耗

// 价时间段配置集
export const getElectorList = (params) => getRequest('/machinemanager/electricity-price-main/page', params);

// 批量创建
export const createElector = (params) => postRequest('/machinemanager/electricity-price-main/create', params);

// 获取电价配置
export const getDetailElector = (params) => getRequest('/machinemanager/electricity-price-main/get', params);

// 更新电价状态
export const updateElector = (params) => putRequest('/machinemanager/electricity-price-main/update', params);
// 删除电价配置
export const delElector = (params) => deleteRequest('/machinemanager/electricity-price-main/delete', params);

